<template>
  <div id="app">
    <router-view name="header"/>
    <main>
      <router-view />
    </main>
    <router-view name="footer" />
  </div>
</template>

<style lang="less">
  * {
    margin: 0;
    padding: 0;
  }
  html,body {
    height: 100%;
  }
  #app {
    display: flex;
    flex-direction: column;
    height: 100%;
    main {
      width: 100%;
      flex: 1;
      overflow: auto;
    }
  }

</style>
